import java.util.ArrayList;

public class ComputerTest {
    public static void main(String[] args) {
        Computer computer1= new Computer("Apple",11980,"13寸");
        Computer computer2= new Computer("Dell",5200,"15.5寸");
        Computer computer3= new Computer("Acer",4999,"15寸");
        ArrayList<Computer> list = new ArrayList<>();
        list.add(computer1);
        list.add(computer2);
        list.add(computer3);
        for (int i = 0; i < list.size(); i++) {
            if (list.get(i).getPrice()>5000.0)
            {
                System.out.println(list.get(i));
            }
        }
    }
}
